<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------

Route::get('think', function () {
    return 'hello,ThinkPHP5!';
});

//登录
Route::rule('admin_user/login', 'AdminUser/login');

//登出
Route::rule('admin_user/logout', 'AdminUser/logout');

//查询用户
Route::rule('user_info/query_list', 'UserInfo/list');

//收入明细
Route::rule('log_income/query_list', 'LogIncome/list');

//提现
Route::rule('log_income/pay', 'LogIncome/pay');

//订单列表
Route::rule('coupon_trade/query_list', 'CouponTrade/list');

//渠道列表
Route::rule('channel_info/query_list', 'ChannelInfo/list');

//渠道修改
Route::rule('channel_info/update_one', 'ChannelInfo/update');

//活动列表
Route::rule('campaign_info/query_list', 'CampaignInfo/list');

//增加活动
Route::rule('campaign_info/add_one', 'CampaignInfo/add');

Route::rule('campaign_info/update_one', 'CampaignInfo/update');

//删除活动
Route::rule('campaign_info/delete_one', 'CampaignInfo/del');

//转链日志列表
Route::rule('log_coupon/query_list', 'LogCoupon/list');

//回复客服消息
Route::rule('log_coupon/reply', 'log_coupon/reply');

//用户统计
Route::rule('stats_user/query_list', 'StatsUser/list');

//用户分享统计
Route::rule('stats_share_user/query_list', 'StatsShareUser/list');

//分渠道按小时
Route::rule('stats_channel_hour/query_list', 'StatsChannelHour/list');

//分渠道按天
Route::rule('stats_channel/query_list', 'StatsChannel/list');

//分活动按小时
Route::rule('stats_campaign_hour/query_list', 'StatsCampaignHour/list');

//分活动按天
Route::rule('stats_campaign/query_list', 'StatsCampaign/list');

return [

];
